//
//  SAPrintReceipt.h
//  Saas
//
//  Created by 杨荣 on 2020/6/3.
//  Copyright © 2020 bing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ESCPrinter.h"
#import "BluetoothManager.h"
#import "SACommodityWarehousingPrintModel.h"
#import "SAPrintSkuColorSizeLine.h"// 一组颜色尺码打一行
#import "SAPrintSkuSizeCrosswise.h"// 尺码横排
#import "SASalesInvoiceDetailModel.h"
#import "SACommodityWarehousingSingleModel.h"
#import "SAAllocateDetailModel.h"
#import "SAPirntTopUpBillModel.h"

NS_ASSUME_NONNULL_BEGIN

@class SACommodityWarehousingdetailPayVOSModel;


@interface SAPrintReceipt : NSObject

 // 打印成功回调
typedef void (^SAPrintSuccessBlock)(void);

@property (nonatomic,strong) ESCPrinter *escPrinter;// 打印指令
@property (nonatomic,strong) NSMutableData *writeData;// 打印的总数据
@property (nonatomic,strong) SAOverallSetting *overallSetting;// 全局设置


//零售数据模型变动,兼容打印模式
@property (nonatomic,strong) SACommodityWarehousingPrintModel *totalModel;// 合计数据（日期、客户、员工等等）
@property (nonatomic,copy) NSArray <SASalesOrderViewListModel *>*productSkuArray;// 商品sku数据（多个商品/特殊费用）
@property (nonatomic,strong) SASalesInvoiceDetailModel *detailModel;
@property (nonatomic,strong) SACommodityWarehousingSingleModel *singleModel;
@property (nonatomic,strong) SAAllocateDetailModel *allocateDetailModel;
@property (nonatomic,strong) SAPirntTopUpBillModel *pirntTopUpBillModel;

@property (nonatomic,strong) SAUserInfo *userInfoModel;// 用户数据（当前用户信息、店铺信息）

// 获取显示的支付方式：（支付宝:xx, 微信:xx）
- (NSString *)getDisplayPayWay:(NSArray <SACommodityWarehousingdetailPayVOSModel *>*)payVOS;


@end

NS_ASSUME_NONNULL_END
